package ro.ubbcluj.cs.damate.plugin.events;

import java.util.Calendar;

/**
 * @author Lóránd Fazakas (lfazakas)
 *         Date: 2013.06.27.
 *         Time: 20:50
 */
public class ResourceEvent extends PluginEvent {

    private boolean project;
    private int resourceType;

    public ResourceEvent() {
        this.setType(EventType.RESOURCE);
        this.setDate(Calendar.getInstance());
        this.resourceType = 1;
    }

    public ResourceEvent(String kind, String what) {
    		this();
        setKind(kind);
        setWhat(what);
    }

    public ResourceEvent(String kind, String what, boolean project) {
    		this();
    		this.project = project;
        setKind(kind);
        setWhat(what);
    }

    public boolean isProject() {
        return project;
    }

    public void setProject(boolean project) {
        this.project = project;
    }

    public int getResourceType() {
        return resourceType;
    }

    public void setResourceType(int resourceType) {
        this.resourceType = resourceType;
    }
}
